using System.Reflection;

namespace MetaView.Core;

internal class ReflectDynamicMethodInfo : DynamicMethodInfoBase
{
    private readonly MethodInfo m_method;

    public ReflectDynamicMethodInfo(MethodInfo method) : base(method)
    {
        this.m_method = method;
    }

    public override object Invoke(object instance, object[] parameters)
    {
        return this.m_method.Invoke(instance, parameters);
    }
}